]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/global: Make switcheroo-control available from JS
authorBastien Nocera <hadess@hadess.net>
Tue, 28 Apr 2020 15:25:18 +0000 (17:25 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 4 May 2020 14:22:03 +0000 (16:22 +0200)
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1226

src/shell-app.c
src/shell-global.c
src/shell-global.h

index f72cba15d29594bc9cf0f309efa3a46231f07c11..e7353274c98fdd28428289a62bd38d53dffae8d0 100644 (file)
@@ -1289,7 +1289,7 @@ apply_discrete_gpu_env (GAppLaunchContext *context,
   GVariant* variant;
   guint num_children, i;
 
-  proxy = _shell_global_get_switcheroo_control (global);
+  proxy = shell_global_get_switcheroo_control (global);
   if (!proxy)
     {
       g_warning ("Could not apply discrete GPU environment, switcheroo-control not available");
index 0488c3c4413597debdcbc17f89e8511352067ced..2390c711e4f7c43fe552bb53dda0054af13654c3 100644 (file)
@@ -1402,7 +1402,7 @@ shell_global_sync_pointer (ShellGlobal *global)
 }
 
 /**
- * _shell_global_get_switcheroo_control: (skip)
+ * shell_global_get_switcheroo_control:
  * @global: A #ShellGlobal
  *
  * Get the global #GDBusProxy instance for the switcheroo-control
@@ -1412,7 +1412,7 @@ shell_global_sync_pointer (ShellGlobal *global)
  *   or %NULL on error.
  */
 GDBusProxy *
-_shell_global_get_switcheroo_control    (ShellGlobal  *global)
+shell_global_get_switcheroo_control (ShellGlobal  *global)
 {
   return global->switcheroo_control;
 }
index 860e60ab6c9ee5ba50cfcf5ba197a70ba0063a7a..e1fa60aefbb415e7dcd7b9dd6bc6467b54c9cce1 100644 (file)
@@ -67,7 +67,7 @@ void shell_global_run_at_leisure (ShellGlobal          *global,
 void     shell_global_sync_pointer              (ShellGlobal  *global);
 
 GDBusProxy *
-         _shell_global_get_switcheroo_control   (ShellGlobal  *global);
+         shell_global_get_switcheroo_control    (ShellGlobal  *global);
 
 GAppLaunchContext *
          shell_global_create_app_launch_context (ShellGlobal  *global,